script_path=$(realpath $(dirname $0))

. $script_path/config.sh

current_dir=`pwd`
echo 开始同步代码
rsync -av --delete \
-e "ssh -T -p ${REMOTE_PORT}" \
--exclude='.git/*' \
--exclude='venv/*' \
--exclude='build/*' \
--exclude='lib/*' \
--exclude='build_aarch64/*' \
./ $REMOTE_HOST:$REMOTE_DIR > /dev/null
echo 同步完成